package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.iotechn.unimall.data.dto.goods.FileInfo;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author hct
 * @email 77802226@qq.com
 * @date 2022-05-24 21:04:46
 */

@Data
@TableName("unimall_shop")
public class UserShopDO extends SuperDO {

    /**
     *
     */
    /**
     * 门店名称
     */
    @TableField("shop_name")
    private String shopName;
    /**
     * 门店名称
     */
    @TableField("shop_desc")
    private String shopDesc;
    @TableField("shop_qrcode")
    private String shopQrcode;
    private String biaoduan;
    /**
     * 门店名称
     */
    @TableField("shop_img")
    private String shopImg;
    /**
     * 1个体工商户，2合作社，3农业公司
     */
    @TableField("shop_type")
    private Integer shopType;


    /**
     * 0是未认证1是已认证
     */
    @TableField("status")
    private Integer status;
    /**
     *
     */
    @TableField("gmt_update")
    private Date gmtUpdate;
    /**
     *
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 身份证号
     */
    @TableField("identity")
    private String identity;
    /**
     * 所属区域名称
     */
    @TableField("area")
    private String area;
    /**
     * 所属区域id
     */
    @TableField("area_id")
    private Long areaId;

    private String pianarea;

    private String fuzerenname;
    private Long fuzerenid;
    private String xiangmujingliname;
    private Long   xiangmujingliid;
    @TableField(exist = false)
    private String xiangmujingliPhone;

    /**
     * 详细地址
     */
    @TableField("address")
    private String address;
    /**
     * 公司名称
     */
    @TableField("company_name")
    private String companyName;

    @TableField("company_short_name")
    private String companyShortName;
    /**
     * 真实姓名
     */
    @TableField("true_name")
    private String trueName;


    @TableField("shop_refuse_reson")
    private String shopRefuseReson;

    private String jianshedanwei;
    private String jianlidanwei;
    private String shejidanwei;
    private String shigongdanwei;
    private Date startdate;
     private String jianshedidian;
    private String jiansheneirong;
    @TableField("jianli_id")
    private Long jianliId;

    private String  jianliname;
    //施工电话
    @TableField(exist = false)
    private String shigongPhone;
    //监理电话
    @TableField(exist = false)
    private String jianliPhone;

    @TableField(exist = false)
    private String jianlizongjianPhone;
    @TableField("jianlizongjian_id")
    private Long jianlizongjianId;
    @TableField("jianlizongjian_name")
    private String  jianlizongjianName;
    @TableField("admin_id")
    private Long adminId;

    //文件列表逗号分割
    @TableField("file")
    private String file;
    private String mianji;
    private String money;

    @TableField("finish_time")
    private String  finishiTime;
    //进度 完成度
    private Float jindu;

    private String jingdu;
    private String weidu;

    @TableField(exist = false)
    private String jingweidu;

    public String getJingweidu(){
        return "["+jingdu+","+weidu+"]";
    }

    @TableField(exist = false)
    private List<SpuDO> spuDOList;
    @TableField(exist = false)
    private List<ShopBiaozhunDO> biaozhunDOList;

    @TableField("xiangzhenname")
    private String xiangzhenname;
    @TableField("xiangzhenphone")
    private String xiangzhenphone;
    @TableField("xiangzhen_id")
    private Long   xiangzhenId;
    @TableField("cunname")
    private String cunname;
    @TableField("cunphone")
    private String cunphone;
    @TableField("cun_id")
    private Long   cunId;
}
